package com.treasure.mall.biz.repository.sms;


import com.treasure.mall.biz.entity.sms.VerifyCodePO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @author guomw
 * @date 2018/11/12
 */
@Repository
public interface VerifyCodeRepository extends JpaRepository<VerifyCodePO, Long> {

    /**
     * 根据手机号查询验证码
     *
     * @param mobile
     * @return
     */
    VerifyCodePO findByMobile(String mobile);
}
